#pragma once


// CFhrCtrl

class CFhrCtrl : public CWnd
{
	DECLARE_DYNAMIC(CFhrCtrl)

public:
	CFhrCtrl();
	virtual ~CFhrCtrl();
	BOOL	Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID); 
	void	OnDraw(CDC* pDC);
	void	SetFhrColors(COLORREF crFhr1, COLORREF crFhr2);
	void	RefreshFhr(int nFhr1, int nFhr2);
public:
	COLORREF m_crFhr1;
	COLORREF m_crFhr2;
	int		m_nFhr1;
	int		m_nFhr2;
	CFont	m_ftLittle;
	CFont	m_ftBig;
	int		m_nFontSize;
	int		m_nCounter;
	BOOL	m_bShow;
protected:
	DECLARE_MESSAGE_MAP()
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent) ;
	afx_msg LRESULT OnMsgFhrCtrlUpdateFhr(WPARAM wp, LPARAM lp);
};


